import request from '@/utils/request'

// 获取菜单
export function getOaMenu(params: any) {
    return request.get({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountMenu/detail', params })
}
// 菜单保存
export function setOaMenuSave(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountMenu/saveAndPublish', params })
}
// 菜单发布
export function setOaMenuPublish(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountMenu/save', params })
}

// 获取回复列表
export function getOaReplyList(params: any) {
    return request.get({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/lists', params })
}

/** 回复列表删除 */
export function oaReplyDel(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/delete', params })
}

/** 回复状态修改 */
export function changeOaReplyStatus(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/status', params })
}

/** 回复添加 */
export function oaReplyAdd(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/add', params })
}

/** 回复编辑 */
export function oaReplyEdit(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/edit', params })
}

/** 获取回复详情 */
export function getOaReplyDetail(params: { id: any }) {
    return request.get({ url: '/plugins.adminapi_wxgzh.admin.controller.OfficialAccountReply/detail', params })
}
/** 获取素材 */
export function uploadToWechat(params: any) {
    return request.post({ url: '/plugins.adminapi_wxgzh.admin.controller.wechat/uploadToWechat', params })
}
